Conditions | 4 |
Total Lines | 5 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import Relation from "../Relation"; |
||
30 | |||
31 | private getValueByParentKey(parentProperty) { |
||
32 | const keyIndex = this.model.getIndexByKey(this.foreignKey); |
||
33 | return globalThis.Store.database().find(this.model.className, |
||
34 | [...keyIndex.get(`${this.$parent[parentProperty]}`)?.values() ?? []] |
||
35 | ).first(); |
||
37 | } |